
<template>
  <div id="app">
    <router-view />
  </div>
</template>
 
<script>
// import qs from 'qs'
// import axios from 'axios';
// const gettoken = (data) => axios.post('/service-oauthApi/oauth/token', data);
// const getData = (data) => axios.get('/service-data-service/api/openService/zsyzqk?pageNum=50&pageSize=1', data);

export default {
  name: '',
  components: {},
  data () {
    return {}
  },
  watch: {},
  computed: {},
  mounted() {
    // localStorage.setItem('token', 'token')
    // let formData = {
    //   "grant_type":"password",
    //   "username":"huhanwen",
    //   "password":"1c242c50d1035c1f143d246bd3fa898b",
    //   "client_id":"portal",
    //   "client_secret":"123123",
    // }
    // let data = qs.stringify(formData)
  
    // gettoken(data).then((res) => {
    //   console.log(res.data.access_token);
    //   localStorage.setItem('token', res.data.access_token)

    //   getData().then((res) => {
    //     console.log(res);
    //   })

    // })

  },
  //是当 keepalive 包含的组件再次渲染的时候触发
  activated() {},
  methods: {},
};



</script>

<style>
#app {
width: 100%;
height: 100%;
}
</style>
